import { Column, Entity, Index } from 'typeorm';
import { IBaseEntity } from '../../00_base/IBaseEntity';

@Index('PK__sys_dept__3213E83F7395450A', ['id'], { unique: true })
@Entity('sys_dept', { schema: 'dbo' })
export class SysDept extends IBaseEntity {
  @Column({ name: 'name' })
  name: string;

  @Column({ name: 'parent_id' })
  parentId: number | null;

  @Column({ name: 'tree_path' })
  treePath: string | null;

  @Column({ name: 'sort', nullable: true })
  sort: number | null;

  @Column({ name: 'status' })
  status: number | null;
}
